package com.rs.mapper;

import com.rs.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    //增加一本书
    int addBooks(Books books);
    //删除一本书
    int deleteBooks(@Param("bookId") int id);
    //修改一本书
    int updateBooks(Books books);
    //查询一本书
    Books queryById(@Param("bookId") int id);
    //查询所有书
    List<Books> queryAll();
    //按照名称查询书籍
    List<Books> queryBooksByName(@Param("bookName") String bookName);
}
